package com.guardchina.framework.mybatis.propeties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Map;

/**
 * 描述：多数据源属性
 *
 * @author lwb
 * @date 2019/3/21 17:13
 */
@Data
@ConfigurationProperties(prefix = "spring.datasource")
public class RoutingDataSourceProperties {

    /**
     * 是否开启多数据源
     */
    private Boolean multiple;

    /**
     * 主数据源
     */
    private Map<String, Object> druid;

    private Map<String, Map<String, Object>> slaves;
}
